#ifndef ODOLABEL_H
#define ODOLABEL_H

#include <QWidget>
#include <QLabel>
#include <QLCDNumber>
#include <QHBoxLayout>

class OdoLabel : public QWidget
{
  Q_OBJECT

public:
#ifdef Q_OS_WIN32
  explicit OdoLabel(QWidget *parent = nullptr);
#elif defined(Q_OS_LINUX)
  explicit OdoLabel(QWidget *parent = 0);
#endif
  ~OdoLabel();

  quint32 getOdoValue() const;
  void setOdoValue(const quint32 &value);

private:
  void uiInit();
  QHBoxLayout *mainLayout;
  QLabel *label;
  QLCDNumber *lcdNumber;
  quint32 odoValue;
};

#endif // ODOLABEL_H
